package org.raymond.icloud.common.core.constants;

import com.alibaba.fastjson.util.IOUtils;
import lombok.Getter;
import org.springframework.http.HttpHeaders;

@Getter
public enum Headers {
    CONTENT_TYPE(HttpHeaders.CONTENT_TYPE, "application/json;charset=utf-8"),
    CONTENT_LENGTH(HttpHeaders.CONTENT_LENGTH, "1"),
    ACCEPT_CHARSET(HttpHeaders.ACCEPT_CHARSET, IOUtils.UTF8.name()),
    TRANSFER_ENCODING(HttpHeaders.TRANSFER_ENCODING, IOUtils.UTF8.name())
    ;

    private final String name;
    private final String value;

    Headers(String name, String value){
        this.name = name;
        this.value = value;
    }
}
